package com.cn.feign;

import com.cn.vo.PostUserEntityReqVO;
import org.springframework.stereotype.Component;

/**
 * @Description: 回调实现类
 * @Param:
 * @return:  
 * @Author:  
 * @Date: 2018/6/19 
 */ 
@Component
public class FeignClientFallback implements UserFeign {

    @Override
    public String getNullUser() {
        return "getNullUser" + " default name";
    }

    @Override
    public String getUser(String name) {
        return "getUser" + " default name : " + name;
    }

    @Override
    public String postNullUser() {
        return "postNullUser" + " default name";
    }

    @Override
    public String postUser(String name) {
        return "postUser" + " default name : " + name;
    }

    @Override
    public String postUserEntity(PostUserEntityReqVO reqVO) {
        return "postUserEntity" + " default name : " + reqVO.getName();
    }
}